package org.zfes.snowier.cloud.zbss.cms.checkFlow.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.cloud.zbss.cms.checkFlow.model.CmsCheckProcess;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface CmsCheckProcessMapper extends BaseMapper<CmsCheckProcess>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<CmsCheckProcess> selectModelListPage(ParamMap params);
	
	
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);

	List<CmsCheckProcess> selectCmsCheckProcessList(@Param("contentId")Long contentId, @Param("siteId")Long siteId, @Param("flowId")Long flowId, @Param("checkRole")Long checkRole);

	void deleteByRoleIdAndId(@Param("checkRole")Long checkRole, @Param("id")Long id);

	CmsCheckProcess selectCompleteProcess(@Param("contentId")Long contentId, @Param("status")Byte status, @Param("checkRole")String checkRole,@Param("checkFlowId") Long checkFlowId,@Param("checkStepResult")Byte checkStepResult);

	void deleteByContentIdAndId(@Param("contentId")Long contentId,@Param("id")Long id);
}
